Debian Linux, Unable to Locate Package

fix sources.list

sudo nano /etc/apt/sources.list

paste this in the file (change bullseye to your current version)

deb  http://deb.debian.org/debian  bullseye main
deb-src  http://deb.debian.org/debian  bullseye main

save and close

sudo apt update

Credits